﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChiTietHoaDonNhapList.aspx.cs"
    Inherits="WebApplication.Admin.ChiTietHoaDonNhapList" MasterPageFile="~/Admin/Web.Master" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
<div style="float:right" >
<asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" onclick="lbtnthemmoi_Click" 
               >Cập nhập</asp:LinkButton>
</div><br />
<div style="margin-top:25px">
    <asp:GridView runat="server" ID="GrchitietHdn" AutoGenerateColumns="False" OnRowCommand="GrchitietHdn_RowCommand"
        OnRowDataBound="GrchitietHdn_RowDataBound" CssClass="table table-striped table-bordered table-hover">
        <Columns>
            <asp:TemplateField HeaderText="STT">
                <ItemTemplate>
                    <%# Container.DataItemIndex +1 %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="MAHDN" HeaderText="Mã hóa đơn nhập" />
            <asp:TemplateField HeaderText="Mặt hàng">
                <ItemTemplate>
                    <asp:Label ID="lbmathang" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="SOLUONGNHAP" HeaderText="Số lượng " />
            <asp:TemplateField HeaderText="Đơn giá">
                <ItemTemplate>
                    <asp:Label ID="lbdongia" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tổng tiền">
                <ItemTemplate>
                    <asp:Label ID="lbtongtien" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ghi chú">
                <ItemTemplate>
                    <asp:Label ID="lbghichu" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tình trạng">
                <ItemTemplate>
                    <asp:Label ID="lbtinhtrang" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Chức năng">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MAHDN") %>'><i class="icon-pencil bigger-130"></i></asp:LinkButton>
                    <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MAHDN") %>' OnClientClick="return confirm('Bạn có muốn xóa không ?!')"><i class="icon-trash bigger-130 red"></i></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    </div>
</asp:Content>
